package com.shioirikukuri.entity;

import lombok.*;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
	/*************************角色身份*************************************/
	public static final String ADMIN = "ADMIN";
	public static final String CONSUMER = "CONSUMER";
	public static final String FRONT_DESK = "FRONT_DESK";

	/*************************用户状态**********/
	public static final boolean ENABLED = true;
	public static final boolean DISABLED = false;



	private Long id;
	private String phoneNumber; // 使用手机号作为账号
	private String password; // MD5加密后的密码
	private String fullName;
	private boolean enabled;
	private String role; // 用户角色
	private String avatarUrl; // 头像存储URL或路径,只提供给消费者使用
	private LocalDateTime createdAt;
	private LocalDateTime updatedAt;
}